Release 10.1A: OpenEdge Development:
Messaging and ESB


Preparing to receive messages

In the following example, the 4GL application begins listening on the queue and prepares to receive messages from the queue:

Preparing to receive messages 
RUN receiveFromQueue IN ptpsession (“myQueue", ?, consumerH).  
RUN startReceiveMessages IN ptpsession. 
/* Wait to receive the messages. */ 
WAIT-FOR u1 OF THIS-PROCEDURE. 

The Message Consumer (consumerH handle) listens on myqueue and handles messages using the myintproc internal procedure. The startReceiveMessages procedure starts receipt of incoming messages.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095